﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator_WebSite/MasterPage.master"
    AutoEventWireup="true" CodeBehind="AddEditClub.aspx.cs" Inherits="FootBallMatchProject.Piography.Admin.AddEditClub" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="margin: 0px; padding: 0px;">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 100px;">
                </td>
                <td style="background-color: #f5f5f5; border: 2px solid #dfdfdf;">
                    <table width="100%" __designer:mapid="4a3">
                        <tr __designer:mapid="4ab">
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                                Club Name :
                            </td>
                            <td style="width: 25%; direction: ltr;" __designer:mapid="4ac">
                                &nbsp;</td>
                        </tr>
                        <tr __designer:mapid="4ab">
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                                Club Logo :</td>
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                            </td>
                        </tr>
                        <tr __designer:mapid="4ab">
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                                Club Stadium :</td>
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                            </td>
                        </tr>
                        <tr __designer:mapid="4ab">
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                                Club coach :</td>
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                            </td>
                        </tr>
                        <tr __designer:mapid="4ab">
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                                Club Team</td>
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                            </td>
                        </tr>
                        <tr __designer:mapid="4ab">
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                            </td>
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                            </td>
                            <tr __designer:mapid="4ab">
                                <td style="width: 25%" __designer:mapid="4ac">
                                    &nbsp;
                                </td>
                                <td style="width: 25%" __designer:mapid="4ac">
                                    &nbsp;
                                </td>
                            </tr>
                        </tr>
                        <tr __designer:mapid="4ab">
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                            </td>
                            <td style="width: 25%" __designer:mapid="4ac">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr __designer:mapid="4ab">
                                        <td style="width: 25%" __designer:mapid="4ac">
                                            <asp:Label ID="Label7" runat="server" Text="شعار الفريق"></asp:Label>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4ae">
                                            <asp:FileUpload ID="UploadLogo" runat="server" />
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4b1">
                                            <asp:Button ID="btnUploadLogo" runat="server" Text="تحميل" ValidationGroup="2" OnClick="btnUploadLogo_Click" />
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4b3">
                                            <asp:Image ID="Logo" runat="server" Visible="False" />
                                        </td>
                                        <td __designer:mapid="4b6">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4ab">
                                        <td style="width: 25%" __designer:mapid="4ac">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4ae">
                                            <asp:HiddenField ID="hfLogo" runat="server" />
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4b1">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4b3">
                                            &nbsp;
                                        </td>
                                        <td __designer:mapid="4b6">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4ab">
                                        <td style="width: 25%" __designer:mapid="4ac">
                                            <asp:Label ID="lblClub" runat="server" Text="النادي"></asp:Label>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4ae">
                                            <asp:TextBox ID="txtClub" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvClub" runat="server" ControlToValidate="txtClub"
                                                ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4b1">
                                            <asp:Label ID="Label1" runat="server" Text="تاريخ التأسيس"></asp:Label>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4b3">
                                            <asp:TextBox ID="dtDateOfFoundation" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvDateOfFoundation" runat="server" ControlToValidate="dtDateOfFoundation"
                                                ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                                        </td>
                                        <td __designer:mapid="4b6">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4b7">
                                        <td style="width: 25%" __designer:mapid="4b8">
                                            <asp:Label ID="Label2" runat="server" Text="المدرب"></asp:Label>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4ba">
                                            <asp:DropDownList ID="cmbCoaches" runat="server">
                                            </asp:DropDownList>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4bc">
                                            <asp:Label ID="Label3" runat="server" Text="الموقع الرسمي"></asp:Label>
                                        </td>
                                        <td dir="rtl" style="width: 25%" __designer:mapid="4be">
                                            <asp:TextBox ID="txtWebSite" runat="server"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="rxvWebSite" runat="server" ControlToValidate="txtWebSite"
                                                ErrorMessage="*" ForeColor="Red" ValidationExpression="([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
                                        </td>
                                        <td __designer:mapid="4c1">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4c2">
                                        <td style="width: 25%" __designer:mapid="4c3">
                                            <asp:Label ID="Label4" runat="server" Text="الدوري"></asp:Label>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4c5">
                                            <asp:DropDownList ID="cmbLeagues" runat="server">
                                            </asp:DropDownList>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4c7">
                                            <asp:Label ID="Label5" runat="server" Text="الملعب"></asp:Label>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4c9">
                                            <asp:DropDownList ID="cmbStadiums" runat="server">
                                            </asp:DropDownList>
                                        </td>
                                        <td __designer:mapid="4cb">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4cc">
                                        <td style="width: 25%" __designer:mapid="4cd">
                                            <asp:Label ID="Label6" runat="server" Text="معلومات عامة"></asp:Label>
                                        </td>
                                        <td colspan="4" __designer:mapid="4cf">
                                            <asp:TextBox ID="txtGeneralInformation" runat="server" TextMode="MultiLine" Width="100%"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4d1">
                                        <td style="width: 25%" __designer:mapid="4d2">
                                            <asp:Label ID="Label8" runat="server" Text="لباس الفريق"></asp:Label>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4d4">
                                            <asp:FileUpload ID="UploadColor" runat="server" />
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4d6">
                                            <asp:Button ID="btnUploadColorImage" runat="server" Text="تحميل" ValidationGroup="2"
                                                OnClick="btnUploadColorImage_Click" />
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4d8">
                                            <asp:Image ID="Color" runat="server" Visible="False" />
                                        </td>
                                        <td __designer:mapid="4d9">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4d1">
                                        <td style="width: 25%" __designer:mapid="4d2">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4d4">
                                            <asp:HiddenField ID="hfColorImage" runat="server" />
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4d6">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4d8">
                                            &nbsp;
                                        </td>
                                        <td __designer:mapid="4d9">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4da">
                                        <td style="width: 25%" __designer:mapid="4db">
                                            <asp:Label ID="Label9" runat="server" Text="الفريق"></asp:Label>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4dd">
                                            <asp:FileUpload ID="UploadClubImage" runat="server" />
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4df">
                                            <asp:Button ID="btnUploadClubImage" runat="server" Text="تحميل" ValidationGroup="2"
                                                OnClick="btnUploadClubImage_Click" />
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4e1">
                                            <asp:Image ID="ClubImage" runat="server" Visible="False" />
                                        </td>
                                        <td __designer:mapid="4e2">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4da">
                                        <td style="width: 25%" __designer:mapid="4db">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4dd">
                                            <asp:HiddenField ID="hfClubImage" runat="server" />
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4df">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4e1">
                                            &nbsp;
                                        </td>
                                        <td __designer:mapid="4e2">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4e9">
                                        <td __designer:mapid="4ea" colspan="5">
                                            <asp:Panel ID="pnlStatistics" runat="server" BorderWidth="0px" Visible="false" Width="100%">
                                                <table width="100%">
                                                    <tr>
                                                        <td style="width: 25%">
                                                            <asp:Label ID="Label10" runat="server" Text="احصائيات الفريق"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <table style="width: 100%">
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="Label14" runat="server" Text="السنة"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtYear" runat="server" Width="100%"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="Label11" runat="server" Text="فوز"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtWin" runat="server" Width="100%"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="Label12" runat="server" Text="تعادل"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtDraw" runat="server" Width="100%"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="Label13" runat="server" Text="خسارة"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtLose" runat="server" Width="100%"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                        <td style="width: 25%">
                                                            <asp:ImageButton ID="imgbtnAdd" runat="server" Height="15px" ImageUrl="~/images/ADD.jpg"
                                                                OnClick="imgbtnAdd_Click" Width="15px" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="3">
                                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                                <ContentTemplate>
                                                                    <asp:GridView ID="gvStatistics" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="gvStatistics_RowCancelingEdit"
                                                                        OnRowDeleting="gvStatistics_RowDeleting" OnRowEditing="gvStatistics_RowEditing"
                                                                        OnRowUpdating="gvStatistics_RowUpdating" Width="100%">
                                                                        <Columns>
                                                                            <asp:TemplateField ShowHeader="False">
                                                                                <EditItemTemplate>
                                                                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Update" Text="تحديث"></asp:LinkButton>
                                                                                    &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                                                                        Text="الغاء"></asp:LinkButton>
                                                                                </EditItemTemplate>
                                                                                <HeaderTemplate>
                                                                                    <asp:Label ID="Label18" runat="server" Text="الاحصائية"></asp:Label>
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" CommandName="Edit"
                                                                                        Text="تعديل"></asp:LinkButton>
                                                                                </ItemTemplate>
                                                                                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField>
                                                                                <EditItemTemplate>
                                                                                    <asp:TextBox ID="txtWin" runat="server" Text='<%# Bind("Win") %>' Width="100%"></asp:TextBox>
                                                                                    <br />
                                                                                    <asp:LinkButton ID="lnkID" runat="server" Text='<%# Bind("ID") %>' Visible="False"></asp:LinkButton>
                                                                                </EditItemTemplate>
                                                                                <HeaderTemplate>
                                                                                    <asp:Label ID="Label19" runat="server" Text="فوز"></asp:Label>
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="Label15" runat="server" Text='<%# Bind("Win") %>'></asp:Label>
                                                                                    <asp:LinkButton ID="lnkID0" runat="server" Text='<%# Bind("ID") %>' Visible="False"></asp:LinkButton>
                                                                                    <br />
                                                                                </ItemTemplate>
                                                                                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField>
                                                                                <EditItemTemplate>
                                                                                    <asp:TextBox ID="txtDraw" runat="server" Text='<%# Bind("Draw") %>' Width="100%"></asp:TextBox>
                                                                                </EditItemTemplate>
                                                                                <HeaderTemplate>
                                                                                    <asp:Label ID="Label20" runat="server" Text="تعادل"></asp:Label>
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="Label16" runat="server" Text='<%# Bind("Draw") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField>
                                                                                <EditItemTemplate>
                                                                                    <asp:TextBox ID="txtLose" runat="server" Text='<%# Bind("Lose") %>' Width="100%"></asp:TextBox>
                                                                                </EditItemTemplate>
                                                                                <HeaderTemplate>
                                                                                    <asp:Label ID="Label21" runat="server" Text="خسارة"></asp:Label>
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="Label17" runat="server" Text='<%# Bind("Lose") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField>
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="lblYear" runat="server" Text='<%# Bind("Year") %>'></asp:Label>
                                                                                </EditItemTemplate>
                                                                                <HeaderTemplate>
                                                                                    <asp:Label ID="Label24" runat="server" Text="السنة"></asp:Label>
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="Label22" runat="server" Text='<%# Bind("Year") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField ShowHeader="False">
                                                                                <HeaderTemplate>
                                                                                    <asp:Label ID="Label25" runat="server" Text="حذف"></asp:Label>
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="LinkButton10" runat="server" CausesValidation="False" CommandArgument='<%# Eval("ID") %>'
                                                                                        CommandName="Delete" Text="حذف"></asp:LinkButton>
                                                                                </ItemTemplate>
                                                                                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" />
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4e9">
                                        <td __designer:mapid="4ea" colspan="2">
                                            <table class="style2" __designer:mapid="4ec">
                                                <tr __designer:mapid="4ed">
                                                    <td __designer:mapid="4ee">
                                                        <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="حفظ" />
                                                    </td>
                                                    <td __designer:mapid="4f0">
                                                        <asp:Button ID="btnClear" runat="server" OnClick="btnClear_Click" Text="مسح" />
                                                    </td>
                                                    <td __designer:mapid="4f2">
                                                        <asp:Button ID="btnClose" runat="server" OnClick="btnClose_Click" Text="اغلاق" ValidationGroup="2" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4f4">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4f5">
                                            &nbsp;
                                        </td>
                                        <td __designer:mapid="4f6">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4f7">
                                        <td style="width: 25%" __designer:mapid="4f8">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4f9">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4fa">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4fb">
                                            &nbsp;
                                        </td>
                                        <td __designer:mapid="4fc">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr __designer:mapid="4fd">
                                        <td style="width: 25%" __designer:mapid="4fe">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="4ff">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="500">
                                            &nbsp;
                                        </td>
                                        <td style="width: 25%" __designer:mapid="501">
                                            &nbsp;
                                        </td>
                                        <td __designer:mapid="502">
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td align="center">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 100px;">
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
